﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using SmartAgricultureService.Models.Enums;
using SmartAgricultureService.Models.Tables;

namespace SmartAgricultureService.Models
{
    public class MqttDataDetail
    {
        [JsonConverter(typeof(StringEnumConverter))]
        public MqttType Type { get; set; }
        public string Mac { get; set; }
        public string Response { get; set; }
        public long? Interval { get; set; }
        public long? Threshold { get; set; }
        public long? Temperature { get; set; }
        public long? Humidity { get; set; }
        public long? Illumination { get; set; }
        public IEnumerable<DeviceInfo> Devices { get; set; }
    }
}